package com.sdk.utill;

import java.time.LocalDate;
import java.time.temporal.IsoFields;
import lombok.Generated;

public final class VersionGenerator {
   public static String getCurrentWeekVersion() {
      LocalDate currentDate = LocalDate.now();
      int year = currentDate.getYear();
      int weekNumber = currentDate.get(IsoFields.WEEK_OF_WEEK_BASED_YEAR);
      return String.format("%04d%02d", year, weekNumber);
   }

   
   private VersionGenerator() {
      throw new UnsupportedOperationException("This is a utility class and cannot be instantiated");
   }
}
